﻿using System.Collections.Generic;

namespace Odyssey.Consul.Models.Internal
{
    public class CheckRegister
    {
        public string ID { get; set; }

        public string Name { get; set; }

        public string Notes { get; set; }

        /// <summary>
        /// 某服务与设定时间内自动取消注册。格式，如“10m”
        /// </summary>
        public string DeregisterCriticalServiceAfter { get; set; }

        public string[] Args { get; set; }

        public string DockerContainerID { get; set; }

        public string Shell { get; set; }

        public string HTTP { get; set; }

        public string Method { get; set; }

        public Dictionary<string, string[]> Header { get; set; }

        public string TCP { get; set; }

        public string Interval { get; set; }

        /// <summary>
        /// Time to live
        /// 服务需在固定时间内向Consul发送当前状态
        /// 状态接口：Pass Warn Fail Update
        /// </summary>
        public string TTL { get; set; }

        public bool TLSSkipVerify { get; set; }
    }
}
